package com.framework.main.sys.bd.action;
import com.framework.base.struts.BaseAction;
import com.framework.base.util.Struts2Utils;
import com.framework.main.sys.bd.domain.SysBdVO;
import com.framework.main.sys.bd.service.SysBdService;

/**
 * Title:首页 >> 系统管理 >> 基础数据子项管理 (Action)
 * Description:用于管理基础数据子项数据请求
 * tabaleName(对应的表名):SYS_BD
 * Copyright: Copyright (c) 2011
 * Company: www.51wuxia.com
 * @author：www.51wuxia.com
 */
@SuppressWarnings("serial")
public class SysBdAction extends BaseAction{
	private SysBdService bdService;
	public SysBdService getBdService() {
		return bdService;
	}
	public void setBdService(SysBdService bdService) {
		this.bdService = bdService;
	}
	
	/*public String toList() throws Exception {
		String idf=Struts2Utils.getRequest().getParameter("fid");
		//getQueryMap().put("queryMap.typeIdf", idf);
		HashMap<String,Object> paramsMap=new HashMap<String, Object>();
		paramsMap=(HashMap<String, Object>) Struts2Utils.getParameterMap(paramsMap,this.getVo());
		paramsMap.put("typeIdf", idf);
		Result result = this.getBaseService().toList(paramsMap);
		setPage(result.getPage());
		return result.getForwardName();
	}*/
	
	
	public String toInsert() throws Exception {
		SysBdVO dbvo=new SysBdVO();
		dbvo.setTypeIdf(Struts2Utils.getParameter("typeIdf"));
		this.setVo(dbvo);
		return SUCCESS;
	}
}
